]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
search: Initialise searchInProgress when search providers are registered
authorPhilip Withnall <withnall@endlessm.com>
Fri, 18 Jan 2019 13:17:21 +0000 (13:17 +0000)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 24 Jan 2019 14:48:48 +0000 (14:48 +0000)
This avoids the following warning sometimes happening later:

JS WARNING: [resource:///org/gnome/shell/ui/search.js 701]: reference to undefined property "searchInProgress"

Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/357

js/ui/search.js

index 4adf50217084ec6abf6ddc73529f86553f4222a1..16bd8cf207a7059b63a22566c7687cc02cde5833 100644 (file)
@@ -473,6 +473,7 @@ var SearchResults = new Lang.Class({
     },
 
     _registerProvider(provider) {
+        provider.searchInProgress = false;
         this._providers.push(provider);
         this._ensureProviderDisplay(provider);
     },